<?php /* Smarty version Smarty-3.1.13, created on 2013-08-08 09:22:04
         compiled from "/var/www/html/templates/en/adwords/items.tpl" */ ?>
<?php /*%%SmartyHeaderCode:176520543951feb288948cf9-94898139%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0b00cb57521f970d82221c1ef0f1889716537e09' => 
    array (
      0 => '/var/www/html/templates/en/adwords/items.tpl',
      1 => 1375809192,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '176520543951feb288948cf9-94898139',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51feb288aa4fd6_49184275',
  'variables' => 
  array (
    'action' => 0,
    'msg' => 0,
    'categories' => 0,
    'chk' => 0,
    'v' => 0,
    'v2' => 0,
    'counter' => 0,
    'k' => 0,
    'select' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51feb288aa4fd6_49184275')) {function content_51feb288aa4fd6_49184275($_smarty_tpl) {?>
<script>
function checkAll()
{
	var total;
	total = document.frmAdmin.total.value;
	var i;
	for(i=1;i<total;i++) {
		id = document.getElementById("chk" + i);
		id.checked = true;
	}
}

function unCheckAll()
{
	var total;
	total = document.frmAdmin.total.value;
	var i;
	for(i=1;i<total;i++) {
		id = document.getElementById("chk" + i);
		id.checked = false;
	}
}
</script>

<!-- Content Area -->
<form name="frmAdmin" action="<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
" method="post">    
<div class="dma-thumbnail">
    <div class="content">
	
        <div class="header">
            <h1 class="page-title">SELECT ITEMS</h1>
        </div>
    </div>
    <ul class="breadcrumb">
        <li><a href="#">Home</a> <span class="divider">/</span></li>
        <li class="active">Adwords</li>
    </ul>
    <div class="container-fluid">
    	<?php if ($_smarty_tpl->tpl_vars['msg']->value){?>
        <div class="alert alert-success">
        <button class="close" data-dismiss="alert" type="button">×</button>
        <?php echo $_smarty_tpl->tpl_vars['msg']->value;?>

        </div>
        <?php }?>    
        <div class="row-fluid">
            <div class="well">
              <fieldset id="filter-bar">
                <legend class="element-invisible">Filter:</legend>
                <div><a href="#" onclick="javascript:checkAll();" >Checkall</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="javascript:unCheckAll();">Uncheckall</a></div>
                <div class="filter-search">
                    <?php if ($_smarty_tpl->tpl_vars['categories']->value){?>
                        <?php $_smarty_tpl->tpl_vars["counter"] = new Smarty_variable("1", null, 0);?>
                        <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['categories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
                            <?php $_smarty_tpl->tpl_vars["select"] = new Smarty_variable("0", null, 0);?>
                            <?php if ($_smarty_tpl->tpl_vars['chk']->value){?>
                                <?php  $_smarty_tpl->tpl_vars['v2'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v2']->_loop = false;
 $_smarty_tpl->tpl_vars['k2'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['chk']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v2']->key => $_smarty_tpl->tpl_vars['v2']->value){
$_smarty_tpl->tpl_vars['v2']->_loop = true;
 $_smarty_tpl->tpl_vars['k2']->value = $_smarty_tpl->tpl_vars['v2']->key;
?>
                                    <?php if ($_smarty_tpl->tpl_vars['v']->value==$_smarty_tpl->tpl_vars['v2']->value){?>
                                        <?php $_smarty_tpl->tpl_vars["select"] = new Smarty_variable("1", null, 0);?>
                                    <?php }?>
                                <?php } ?>
                            <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['counter']->value%2==1){?>
                                <div class="clr"></div>
                            <?php }?>
                            <div style="float:left;width:300px"><input type="checkbox" name="chk[]" id="chk<?php echo $_smarty_tpl->tpl_vars['counter']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['select']->value==1){?> checked="checked" <?php }?> /> <?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</div>
                            <?php $_smarty_tpl->tpl_vars["counter"] = new Smarty_variable($_smarty_tpl->tpl_vars['counter']->value+1, null, 0);?>
                        <?php } ?>
                    <?php }?>
                    <div class="clr"></div>
                    <div class="clr"></div>
                  <button type="submit">Select</button>
                </div>
              </fieldset>          
            </div>
         
        </div>
    </div>            
</div>
      <input type="hidden" value="" name="task"  />
      <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['counter']->value;?>
" name="total"  />
</form>
  
  <noscript>
  Warning! JavaScript must be enabled for proper operation of the Administrator backend.
  </noscript>
  <div class="clr"></div>
</div>
<!-- end of content --> 
<?php }} ?>